package com.chen.service.Impl;

import com.chen.mapper.EchartsMapper;
import com.chen.pojo.Article;
import com.chen.pojo.User;
import com.chen.service.EchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author chen

 */
@Service
@Transactional
public class EchartsServiceImpl implements EchartsService {

    @Resource
    private EchartsMapper echartsMapper;

    @Override
    public List<Article> articleList() {
        return echartsMapper.articleList();
    }

    @Override
    public List<User> userSexCount() {
        return echartsMapper.userSexCount();
    }
}
